package com.wzu.springbootcrud2.dao;

import com.wzu.springbootcrud2.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface UserMapper {

    int deleteByPrimaryKey(Integer id);
    int insert(User record);
    User selectByPrimaryKey(Integer id);
    List<User> selectAll();
    int updateByPrimaryKey(User record);
    List<User> finduserbyNameAndrole(User user);
    User getLoginUser(User user);
    User selectByUsercode(String usercode);


}